<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery-easyui-1.4/jquery-1.8.0.min.js"></script>
    <script src="jquery-easyui-1.4/jquery.easyui.min.js"></script>
    <link rel="stylesheet" href="jquery-easyui-1.4/themes/default/easyui.css" />
    <script src="jquery-easyui-1.4/locale/easyui-lang-zh_CN.js"></script>
    <link rel="stylesheet" href="jquery-easyui-1.4/themes/icon.css">
    <script src="zeasyui-2.0.js"></script>
</head>
<body class="easyui-layout">

<script>
    var dlg=null;
    var dg =null;
    $(function(){
        dlg = new Dlg($("#dlg"));
        // dlg.show();

        dg = new Dg($("#dg"));
        dg.url = "dg.json";
        dg.init();
        dg.dlg = dlg;

    })
</script>
<div data-options="region:'center',noheader:true">
    <div id="dg">
        <div class="toolbar" style="padding-top: 8px;padding-left:15px;display:none">
            <div style="padding-bottom:5px">
                <a class="easyui-linkbutton btn_add" href="javascript:;" iconCls="icon-add" plain="true">添加</a>
                <span class="updateRecord">
                    <a class="easyui-linkbutton btn_modify" href="javascript:;" iconCls="icon-edit" plain="true">修改</a>
                    <a class="easyui-linkbutton btn_del" href="javascript:;" iconCls="icon-remove" plain="true">删除</a>
                </span>
                <a class="easyui-linkbutton btn_reload" iconcls="icon-reload" plain="true">重载</a>
            </div>
            <div>
                <form class="searchForm">
                    名称:<input name="name" class="easyui-textbox" style="width:110px" />
                    说明:<input name="comment" class="easyui-textbox" style="width:110px" />
                    <a class="easyui-linkbutton btn_query" iconcls="icon-search" plain="true">查询</a>
                </form>
            </div>
        </div>
        <div/>
    </div>
</div>
<div style="display: none;">
    <div id="dlg">
        <form class="mainForm">
            <table>
                <tr>
                    <td>用户名:</td>
                    <td>
                        <input name="username" class="easyui-textbox" data-options="required:true,missingMessage:'不能为空'" style="width:220px" />
                    </td>
                </tr>
                <tr>
                    <td>
                        密码:
                    </td>
                    <td>
                        <input name="password" type="password" class="easyui-textbox" data-options="required:true,missingMessage:'不能为空'" style="width:220px" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>


</body>
</html>